#!/bin/bash

/usr/bin/expect -c "
spawn ssh root@10.15.0.32
expect {
  \"yes/no\" {send \"yes\r\"; exp_continue}
   \"password:\" {send \"1\r\"; interact}
 # \"password:\" {send \"1\r\";interact}
  
}
"
ip addr
